<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>

<body>
<div style="text-align:center;margin-top:50px">
    <form action="${pageContext.request.contextPath}/userCtrl?parm=edit" method="post">
        <input type="hidden" name="id" value="${user.id}">
        用户名：<input type="text" name="username" value="${user.username}"><br><br>
        昵&nbsp;&nbsp;&nbsp;称：<input type="text" name="nickName" value="${user.nickName}"><br><br>
        <input type="checkbox" name="isAdmin" <c:if test="${user.isAdmin==1}">checked</c:if>>管理员
        <input type="checkbox" name="state" <c:if test="${user.state==1}">checked</c:if>>禁&nbsp;&nbsp;用
        <input type="checkbox" name="deleted" <c:if test="${user.deleted==1}">checked</c:if>>删&nbsp;&nbsp;除<br><br>
        <input type="submit" value="更新"/>
    </form>
</div>
</body>
</html>
